using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Typing_GUI.CLASS;

namespace Typing_GUI
{
    public partial class frmTopMembers : Form
    {
        public frmTopMembers()
        {
            InitializeComponent();
        }
        private void frmTopMembers_Load(object sender, EventArgs e)
        {
           try
           {
               DataTable dt1 = CNguoiDung.LoadTopMemberType(1);
               dgvTextTyping.DataSource = dt1;
               DataTable dt2 = CNguoiDung.LoadTopMemberType(2);
               dgvAdventure.DataSource = dt2;
           }
           catch
           {
               MessageBox.Show("ERROR connecting database ","ERROR");
           }
        }

        private void btnBackToMenu_Click(object sender, EventArgs e)
        {
            this.Close();
        }

       

       
    }
}